Fixtureless lensmeter and methods of operating same

ABSTRACT

A process is provided for determining characteristics of a lens, the process including obtaining a captured image of a pattern through a corrective lens; transforming the captured image to an ideal coordinate system; processing the captured image to determine an overall distortion from a reference pattern to the pattern of the captured image; determining a distortion of the captured pattern attributable to the corrective lens; and measuring at least one characteristic of the corrective lens. In some embodiments, the overall distortion is determined by detecting, in the captured image, at least one captured pattern landmark; determining a transformation from at least one ideal pattern landmark to the at least one captured pattern landmark; and determining for the corrective lens, from the transformation, a spherical power measurement, a cylinder power measurement, and an astigmatism angle measurement.

BACKGROUND Technical Field

The technical field generally relates to determining prescriptions of corrective lenses, and more particularly, in one aspect, to mobile device lensmeters and methods of operating such lensmeters.

Background Discussion

Eye doctors, eyeglass lens makers, and others who work with lenses often use traditional lensmeters to determine the prescription (including the spherical power, cylinder power, and axis) of an unknown corrective lens. Such lensmeters typically involve shining a light source through a pattern and a corrective lens mounted on a fixture of the lensmeter, and viewing the light at an eyepiece opposite the light source. Observing the pattern's distorted appearance through the eyepiece, the distortion can be correlated to a prescription known to create such a distortion.

A fixture holds the pattern, the corrective lens, and the eyepiece in an appropriate spacing and configuration to one another. Yet the fixture is typically large and heavy, making such an arrangement unwieldy and undesirable for use at home or in the field. Such traditional methods of determining a prescription for a corrective lens also do not provide a convenient way to convey the prescription information to others, such as an eye doctor or lens maker. While the information may be conveyed by telephone, for example, the risk of transcription error or other issues rises, making it less attractive for individuals to determine a corrective lens prescription in a convenient setting, such as home or work. Those seeking to determine a prescription of an unknown corrective lens must therefore travel to an eye doctor or other professional, which introduces additional delays and costs to the process.

SUMMARY

According to one aspect, a process for determining characteristics of a lens includes obtaining a captured image of a pattern through a corrective lens; transforming the captured image to an ideal coordinate system; processing the captured image to determine an overall distortion from a reference pattern to the pattern of the captured image; determining a distortion of the captured pattern attributable to the corrective lens; and measuring at least one characteristic of the corrective lens. According to one embodiment, the captured image includes a first region containing the pattern and created by light passing through the corrective lens, and a second region created by light not passing through the corrective lens, and determining the distortion of the captured pattern attributable to the corrective lens is performed at least in part with reference to the second region. According to a further embodiment, the pattern is a checkerboard pattern, and the second region contains a border. According to another embodiment, transforming the captured image to an ideal coordinate system includes detecting a plurality of captured reference landmarks in the second region of the captured image; determining a transformation from a plurality of ideal reference landmarks to the plurality of captured reference landmarks; and applying the transformation to the captured image.

According to another embodiment, the pattern is a first pattern and the corrective lens is a first corrective lens, and obtaining the captured image of the pattern through the corrective lens includes obtaining a captured image of the first pattern through the first corrective lens and a second pattern through the second lens.

According to yet another embodiment, processing the captured image to determine the overall distortion from the reference pattern to the pattern of the captured image includes detecting, in the captured image, a plurality of captured pattern landmarks; determining a transformation from a plurality of ideal pattern landmarks to the plurality of captured pattern landmarks; and determining for the corrective lens, from the transformation, a spherical power measurement, a cylinder power measurement, and an astigmatism angle measurement. According to a further embodiment, the transformation is a dioptric power matrix.

According to yet a further embodiment, obtaining the captured image of the at least one pattern through the corrective lens is performed at a first location of a camera lens relative to the at least one pattern, further including capturing, at a second location of the camera lens relative to the at least one pattern, a second captured image of the at least one pattern through the corrective lens; detecting, in the second captured image, the plurality of captured pattern landmarks; determining a second transformation from the plurality of ideal pattern landmarks to the plurality of captured pattern landmarks; determining, for the corrective lens, from the second transformation, the spherical power measurement, the cylinder power measurement, and the astigmatism angle measurement; and selecting a preferred transformation from the first transformation and the second transformation for which the spherical power measurement and the cylinder power measurement have a maximum absolute value.

According to a still further embodiment, the captured image is captured by a camera having a camera lens, and the corrective lens is positioned at a known location relative to the camera lens and the pattern. According to a further embodiment, determining the distortion of the captured image attributable to the corrective lens includes determining a distance between the camera lens and the pattern; and determining at least one focal length of the corrective lens with reference to the distance, the spherical power measurement, and the cylinder power measurement.

According to one embodiment, measuring the at least one characteristic of the corrective lens includes determining a prescription of the corrective lens, the prescription including at least a sphere value, a cylinder value, and an axis value. According to another embodiment, obtaining a captured image of a pattern through a corrective lens includes obtaining, through a camera lens, a captured image of a first pattern through a first corrective lens and a second pattern through a second corrective lens, wherein the two patterns are spaced from each other such that obtaining the captured image of the first pattern through the first corrective lens and the second pattern through the second corrective lens can be performed when the first corrective lens and the second corrective lens are positioned at a known location relative to the camera lens and the first and second patterns.

According to yet another embodiment, the process further includes determining, from the captured image, a first location of a camera lens of a lensmeter through which the captured image was captured; identifying a direction to a second location relative to the first location; guiding a user of the lensmeter to the second location; and capturing a second captured image of the pattern through the corrective lens.

According to another aspect, a lensmeter includes a camera; a visual display; and a processor coupled to the camera and configured to obtain a captured image of a pattern through a corrective lens; transform the captured image to an ideal coordinate system; process the captured image to determine an overall distortion from a reference pattern to the pattern of the captured image; determine a distortion of the captured pattern attributable to the corrective lens; and measure at least one characteristic of the corrective lens.

According to one embodiment, the captured image includes a first region containing the pattern and created by light passing through the corrective lens, and a second region created by light not passing through the corrective lens. According to a further embodiment, the processor is further configured to transform the captured image to an ideal coordinate system by being configured to detect a plurality of captured reference landmarks in the second region of the captured image; determine a transformation from a plurality of ideal reference landmarks to the plurality of captured reference landmarks; and apply the transformation to the captured image. According

According to another embodiment, the processor is further configured to process the captured image to determine the overall distortion from the reference pattern to the pattern of the captured image by being configured to detect, in the captured image, a plurality of captured pattern landmarks; determine a transformation from a plurality of ideal pattern landmarks to the plurality of captured pattern landmarks; and determine for the corrective lens, from the transformation, a spherical power measurement, a cylinder power measurement, and an astigmatism angle measurement. According to a further embodiment, the processor is further configured to obtain the captured image of the at least one pattern through the corrective lens at a first location, the processor further configured to capture, at a second location, a second captured image of the at least one pattern through the corrective lens; detect, in the second captured image, the plurality of captured pattern landmarks; determine a second transformation from the plurality of ideal pattern landmarks to the plurality of captured pattern landmarks; determine, for the corrective lens, from the second transformation, the spherical power measurement, the cylinder power measurement, and the astigmatism angle measurement; and select a preferred transformation from the first transformation and the second transformation for which the spherical power measurement and the cylinder power measurement have a maximum absolute value. According to yet a further embodiment, the captured image is captured through a camera lens of the camera, and the processor is further configured to determine the distortion of the captured image attributable to the corrective lens by being configured to determine a distance between the camera lens and the pattern; and determine at least one focal length of the corrective lens with reference to the distance, the spherical power measurement, and the cylinder power measurement.

According to one embodiment, the processor is further configured to measure the at least one characteristic of the corrective lens by being configured to determine a prescription of the corrective lens, the prescription including at least a sphere value, a cylinder value, and an axis value. According to another embodiment, the pattern is printed on a physical medium. According to yet another embodiment, the pattern is displayed on an electronic display device.

Still other aspects, embodiments, and advantages of these exemplary aspects and embodiments, are discussed in detail below. Moreover, it is to be understood that both the foregoing information and the following detailed description are merely illustrative examples of various aspects and embodiments, and are intended to provide an overview or framework for understanding the nature and character of the claimed subject matter. Particular references to examples and embodiments, such as “an embodiment,” “an example,” “one example,” “another embodiment,” “another example.” “some embodiments,” “some examples,” “other embodiments,” “an alternate embodiment,” “various embodiments,” “one embodiment,” “at least one embodiments,” “this and other embodiments” or the like, are not necessarily mutually exclusive and are intended to indicate that a particular feature, structure, or characteristic described in connection with the embodiment or example and may be included in that embodiment or example and other embodiments or examples. The appearances of such terms herein are not necessarily all referring to the same embodiment or example.

Furthermore, in the event of inconsistent usages of terms between this document and documents incorporated herein by reference, the term usage in the incorporated references is supplementary to that of this document; for irreconcilable inconsistencies, the term usage in this document controls. In addition, the accompanying drawings are included to provide illustration and a further understanding of the various aspects and embodiments, and are incorporated in and constitute a part of this specification. The drawings, together with the remainder of the specification, serve to explain principles and operations of the described and claimed aspects and embodiments.

BRIEF DESCRIPTION OF DRAWINGS

Embodiments of the invention are not limited to the details of construction and the arrangement of components set forth in the following description or illustrated in the drawings. Embodiments of the invention are capable of being practiced or of being carried out in various ways. Also, the phraseology and terminology used herein is for the purpose of description and should not be regarded as limiting. The use of “including,” “comprising,” or “having,” “containing,” “involving,” and variations thereof herein, is meant to encompass the items listed thereafter and equivalents thereof as well as additional items.

Various aspects of at least one embodiment are discussed below with reference to the accompanying figures, which are not intended to be drawn to scale. The figures are included to provide an illustration and a further understanding of the various aspects and embodiments, and are incorporated in and constitute a part of this specification, but are not intended as a definition of the limits of any particular embodiment. The drawings, together with the remainder of the specification, serve to explain principles and operations of the described and claimed aspects and embodiments. In the figures, each identical or nearly identical component that is illustrated in various figures is represented by a like numeral. For purposes of clarity, not every component may be labeled in every figure. In the figures:

FIG. 1 is an illustration of a prior art lensmeter;

FIG. 2 is a block diagram of a lensmeter system according to one or more embodiments;

FIG. 3 is a block diagram of a mobile device lensmeter according to one or more embodiments;

FIG. 4 is a flow chart of a method for operating a mobile device lensmeter according to one or more embodiments;

FIG. 5A is an illustration of a reference pattern group according to one or more embodiments;

FIG. 5B is an illustration of a captured image of the reference pattern group of FIG. 5A according to one or more embodiments;

FIG. 5C is the captured image of FIG. 5B after transformation to an ideal coordinate system; and

FIG. 6 illustrates a number of pattern landmarks for a reference pattern group and a pattern of a captured image according to one or more embodiments.

DETAILED DESCRIPTION

According to one or more embodiments, the processes and systems disclosed allow a person to determine characteristics, such as a prescription, of one or more corrective lenses. In some embodiments, an image of one or more patterns is captured through the corrective lens by a camera device, and the distortion of the patterns is measured to determine the characteristics of the corrective lens by a connected computing device with specialized software. Embodiments discussed herein describe a lensmeter as a device configured to measure characteristics of one or more corrective lenses without requiring the specific spacing and arrangement required by known lensmeters and enforced by the fixtures they incorporate. The present lensmeter may be a smartphone or tablet device on which specialized software (e.g., an app) is installed for performing the claimed methods. Alternately, the lensmeter may have a fixed location (e.g., a camera embedded in a wall or fixture) that can measure characteristics of corrective lenses without requiring the corrective lens and the pattern to be precisely spaced and arranged relative to the lensmeter. Such an arrangement may be suitable, for example, in a retail environment, such as an optician location or eyeglass retailer.

The patterns may be displayed on a piece of paper, or may be displayed on a display of another device, such as a laptop computer. In some embodiments, the mobile device (i.e., the mobile lensmeter) and other devices (e.g., the other device displaying the pattern) may be paired, to allow the devices to communicate and interact during the measurement process. Examples herein depicting the mobile lensmeter as the mobile device itself are for illustrative purposes only, and it will be appreciated that functionality discussed herein with respect to the “mobile lensmeter” may be performed on, or in conjunction with, such other devices as part of a mobile lensmeter system.

In some embodiments, two patterns are spaced and configured such that they are visible to the mobile lensmeter—each through one of a pair of corrective lenses in an eyeglass frame—when the corrective lenses are positioned approximately halfway between the patterns and the lensmeter and oriented appropriately. Such an arrangement allows for easy, intuitive positioning of the mobile lensmeter, the patterns, and the corrective lenses. Furthermore, the mobile lensmeter is configured to determine the distance to the pattern and take that measurement into account when determining the prescription. This design facilitates the manual positioning of the elements, eliminating the need for a fixture. In one embodiment, the pattern is a rectangle displayed on a physical medium or on a computer display. In some embodiments, the pattern is surrounded by a border having reference landmarks or other features used to orient the captured image.

According to one or more embodiments, the disclosed processes and systems transform the captured image to an ideal coordinate system to compensate for the orientation of the lensmeter relative to the pattern during the image capture process. In some embodiments, the transformation is made with reference to the location of reference landmarks in the captured image relative to the location of reference landmarks in a reference pattern group.

According to one or more embodiments, the disclosed processes and systems process the captured image to determine an overall distortion by detecting and determining the location of a number of captured pattern landmarks in the captured image. The system determines a transformation that describes the distortion from the location of a number of reference pattern landmarks (in the ideal coordinate system) relative to the corresponding captured pattern landmarks in the captured image. An expression of the transformation (e.g., a dioptric power matrix) may be used to determine measurements of the corrective lens, including a spherical power, a cylinder power, and an astigmatism angle. The portion of the overall distortion due to the corrective lens (as opposed to the lens of the lensmeter) may be determined in part by determining at least one focal length of the corrective lens. Other characteristics of the corrective lens may also be measured. The present embodiments are not limited to sphero-cylindrical lenses, and may be suitable for lenses having other characteristics, such as single vision lenses, bifocal lenses, trifocal lenses, progressive lenses, adjustable focus lenses, or lenses that correct for higher order aberrations.

According to one or more embodiments, multiple images may be captured and analyzed to identify an image captured in a preferred orientation, e.g., where the corrective lens is closest to halfway between the lensmeter and the pattern.

According to one or more embodiments, a lensmeter is provided that includes a camera, a visual display, and a processor configured to carry out the processes described herein. The lensmeter may be a dedicated lensmeter, or may be mobile device (e.g., a smartphone or a tablet device) executing lensmeter software, such as a downloadable app.

FIG. 1 illustrates a conventional optical lensmeter system 100 for determining a prescription and/or other unknown characteristics of a corrective lens 130. A light source 110 is directed through a pattern 120 (e.g., a transparent target having a printed pattern with known dimensions and arrangement) and the corrective lens 130 (and a number of standard and objective lenses, not shown) to an eyepiece 140. A viewer whose eye is engaged with the eyepiece 140 can observe the way that the corrective lens 130 distorts the light passing through the pattern 120. By measuring the distortive effect of the corrective lens 130, the user can determine certain characteristics of the corrective lens 130, including the spherical power, cylindrical power, and axis measurements of the corrective lens 130. The lensmeter system 100 requires a fixture 150, including a lens holder 152, to maintain the pattern 130, the corrective lens 130, and the eyepiece 140 in a precisely spaced and oriented arrangement. The optical principles underlying the operation of the lensmeter system 100 require that the specific spacing and orientation be maintained by the fixture 150.

Similarly, digital lensmeters can be used to image a pattern through a single corrective lens, and use the distortion in the image to determine a prescription and/or other unknown characteristics of a corrective lens. Like conventional optical lensmeters, currently available digital lensmeters require a fixture for holding the corrective lens, the lensmeter lens, and the pattern in a precisely spaced and oriented arrangement.

FIG. 2 illustrates a block diagram of a lensmeter system 200 according to one or more embodiments. In the embodiments shown in FIG. 2, the system 200 includes a lensmeter 210, a corrective lens 220, and a pattern 230. In operation, the lensmeter 210 captures an image of the pattern 230 through the corrective lens 220. The corrective lens 220 distorts the light reflecting off the pattern 230 into the lensmeter 210, and the distortive effect may be measured in order to determine one or more unknown characteristics of the corrective lens 220, including the sphere, cylinder, and axis measurements.

The captured image of the pattern 230 is normalized by converting it to an ideal coordinate system using reference landmarks near the pattern 230. The normalization compensates for rotation, tilt, or distance variances in the spacing and orientation among the lensmeter 210, the corrective lens 220, and the pattern 230. No fixture is therefore required in the lensmeter system 200. The normalized pattern 230 can then be compared to a reference pattern, also in the ideal coordinate system, and the distortive effect of the corrective lens can be isolated from the distortive effect of the lens of the lensmeter 210 itself.

In some embodiments, the pattern 230 is displayed on an electronic display (not shown), such as a computer monitor, tablet or other mobile device, or the like, or is projected onto a surface by a projector. For example, the pattern 230 may be provided on a website accessible by the lensmeter system 200, or may be provided by or through a mobile app running on a mobile device. In other embodiments, the pattern 230 is printed on a physical medium such as a piece of paper or plastic.

In some embodiments, two or more patterns may be used to allow for determining the characteristics of two or more corrective lenses simultaneously. In a preferred embodiment, two spaced patterns are used, with each pattern 230 being a rotation-variant checkerboard grid of alternating black and white squares, where the number of rows in the checkerboard differs from the number of columns by 1. This rotation-variant quality allows the lensmeter 210 to determine whether the pattern 230 is being viewed in a correct, upright position, or alternately is rotated on its side. In one embodiment, the pattern 230 is a black-and-white checkerboard design having eight (8) rows and seven (7) columns. In another embodiment, the pattern 230 has 16 rows and 15 columns. Other configurations or color combinations are also possible.

FIG. 3 is a block diagram of a lensmeter 210 according to some embodiments. In some embodiments, the lensmeter 210 is a consumer mobile device (e.g., a smartphone or tablet device) or computer (e.g., a laptop computer) running specialized software to perform the operations described herein. In other embodiments, the lensmeter 210 is a dedicated lensmeter device. The lensmeter 210 includes a camera 310 having a lens 312, and further includes a processor 320, a user interface 330, a network interface 340, a memory 350, and lensmeter software 360. In some embodiments, the camera 310 is an integral component of the lensmeter 210. In other embodiments, the camera 310 may be an add-on component or accessory. The processor 320 is coupled to the camera 310 and executes software 360 for the image capturing functions performed by the lensmeter 210. In some embodiments, the functionality of the lensmeter 210 may be performed in conjunction with other devices as part of a broader lensmeter system. For example, in an embodiment where functionality of the lensmeter 210 is performed by a user's smartphone, the smartphone may be paired with the user's laptop computer in order to control the display of the patterns. In that example, the lensmeter 210 may be considered to include both the user's smartphone and the laptop computer.

The user interface 330 receives input from, and provides output to, a user of the lensmeter 210. In some embodiments, the user interface 330 displays to the user the image currently visible through the lens 312 of the camera 310, allowing the user to adjust the position or orientation of the lensmeter 210. In some embodiments, the user interface 330 provides the user with a physical or on-screen button to interact with in order to capture an image. In other embodiments, the image is captured automatically when the pattern 230 is detected in the image and certain alignment, size, lighting, and resolution conditions are met.

The user interface 330 may also provide indications to the user to move any of the lensmeter 210, the corrective lens 220, and the pattern 230 to a different absolute position or orientation, or to a different position or orientation relative to each other. For example, the user interface 330 may provide directions such as “MOVE FORWARD,” “MOVE BACKWARD.” “TILT LENSMETER FORWARD,” instructions conveyed with graphics and illustrations, or other such directions, until the user has positioned the lensmeter 210 such that the corrective lens 220 is positioned at an optimal, known position relative to the lensmeter 210 and the pattern 230; and until the lensmeter 210, the corrective lens 220, and the pattern 230 are aligned so that the pattern 230 is viewable through the corrective lens 220 at the lensmeter 210. In some embodiments, the user interface 330 and/or other components of the lensmeter 210 may provide such instructions audibly, such as by recorded voice instructions, or by an audible tone emitted at a frequency proportional (or inversely proportional) to the distance of the lensmeter 210 from the correct position. In other embodiments, the user interface 330 may provide an indication to the user once the user has correctly positioned the lensmeter 210, the corrective lens 220, and the pattern 230, for example by displaying a “green light” or thumbs-up icon. The user interface 330 may also allow a user to interact with other systems or components, such as by giving an instruction to transmit corrective lens prescription information to the user's doctor.

In some embodiments, the network interface 340 allows for access to downloads and upgrades of the software 360. In some embodiments, one or more steps of the process described below may be performed on a server (not shown) or other component distinct from the lensmeter 210, and data may be passed between the lensmeter 210 and the server via the network interface 340. The network interface 340 may further allow for automatically uploading lens characteristics or prescription information to another entity, e.g., the user's optometrist or another corrective lens provider.

Some or all of the processes described herein, as well as other functions, may be performed by the lensmeter software 360 executing on the lensmeter 210, or by other systems in communication with the lensmeter 210 (e.g., via the network interface 340).

FIG. 4 is a flow chart of a process 400 for determining characteristics of a corrective lens according to one or more embodiments. Such embodiments may be implemented using a system such as that shown in FIGS. 2 and 3.

The process begins at step 410.

At step 420, a captured image of a pattern is obtained through a corrective lens. The image is captured by a camera (e.g., camera 310). In some embodiments, the camera is part of, or attached to, a dedicated lensmeter device. In other embodiments, the camera is part of a mobile device (e.g., a smartphone or tablet device). In some embodiments, the user is instructed to hold the mobile device with the camera oriented toward the pattern such that the pattern is viewed through the corrective lens. An image of the pattern is then captured by the camera. The image may be captured in response to a user indication, such as clicking a physical button or an interface element on the screen of the mobile device. In other embodiments, the image may be captured automatically once a stable, relatively static image has been obtained and is in focus, and the lensmeter, corrective lenses, and pattern are appropriately aligned. For example, an accelerometer of the mobile device may be used to determine that the camera is relatively still. If a focused image can be obtained, the system may attempt to discern the presence of the pattern within the image using known image processing and detection techniques. In some embodiments, multiple images may be captured, and an image may be selected for further processing from among the multiple images based on such criteria as the image in which the pattern is most in focus, whether the elements are appropriately aligned, or the like.

In some embodiments, the object may be an image displayed on a computer display. The object may be a pattern with a known geometry and easily detectable feature points. According to some embodiments a checkerboard pattern is used.

FIG. 5A illustrates a pattern group 500 in which patterns 510, 520 are positioned to be used in simultaneously detecting characteristics of two corrective lenses, such as two eyeglass lenses within an eyeglass frame. The patterns 510, 520 are positioned within a border 530. The border 530 includes border reference landmarks 532, 533, 534, 535 at a known locations relative to the border 530. The border 530 and/or the border reference landmarks 532, 533, 534, 535 are used to correct the orientation of the captured image in subsequent steps. In a preferred embodiment, four border reference landmarks are used, though some embodiments may use as few as two border reference landmarks. In one embodiment, a border reference landmark 532, 533, 534, 535 is located in each of the four interior corners of the border 530. The border reference landmarks 532, 533, 534, 535 may be markers recognizable in the captured image using computer vision techniques, or may be inherent landmarks detected by computer vision techniques and/or with reference to the known geometry of the pattern group 500. For example, if it is known that the border 530 is a rectangle having four interior corners, those four interior corners may be located and used as the border reference landmarks 532, 533, 534, 535.

The patterns 510, 520 also include a plurality of pattern reference landmarks 512. The locations of the plurality of pattern reference landmarks 512 in the captured image are used in subsequent steps to determine the nature of the distortion introduced by the corrective lens. In some embodiments, a pattern reference landmark 512 is located at adjoining corners of squares within a checkerboard pattern. The pattern reference landmarks 512 may be markers recognizable in the captured image using computer vision techniques, or may be landmarks detected by computer vision techniques and/or with reference to the known geometry of the pattern group 500.

The locations of the border reference landmarks 532, 533 and the pattern reference landmarks 512 are known in the pattern group 500. Those known locations allow the pattern group 500 to be used as a reference pattern group in subsequent steps, against which the locations of those same points in captured images may be compared.

In some embodiments, the lensmeter is configured to operate when the corrective lenses in an eyeglass frame are halfway between the lensmeter and the patterns 510, 520. The patterns 510, 520 are configured and spaced such that each of the patterns 510, 520 is aligned with both the lensmeter and one of the corrective lenses when the corrective lenses are halfway between the lensmeter and the patterns 510, 520. Such an arrangement can be achieved, for example, when the distance between the centers of the patterns 510, 520 is twice as large as the distance between the centers of the corrective lenses. For example, if the distance between the centers of corrective lenses in an eyeglass frame is 77.5 mm, then the patterns 510, 520 may be spaced such that the distance between the centers of the patterns 510, 520 is 77.5×2=155 mm.

The patterns 510, 520 and/or the border 530 are sized and configured such that, when the lensmeter captures an image of the patterns through the corrective lenses, the openings in a normal-sized eyeglass frame wholly surround the patterns in the captured image, meaning the patterns are completely overlaid by the corrective lenses. The openings of the eyeglass frame are in turn wholly contained within the border 530. The captured image can be considered as having one or more first regions created from light passing through (i.e., distorted by) the corrective lenses, and one or more second regions created from light passing around (i.e., undistorted by) the corrective lenses.

A captured image 550 illustrating such a configuration can be seen in FIG. 5B. The pattern 510 is wholly contained within an opening 542 of an eyeglass frame 540, and the pattern 520 is wholly contained within an opening 544 of the eyeglass frame 540. The patterns 510, 520 in the captured image 550 have been distorted by the corrective lenses in the eyeglass frame 540. The eyeglass frame 540 is wholly contained within the border 530. By employing such a configuration, the distortion of the patterns 510, 520 in the captured image due to the corrective lenses can be measured, whereas the border reference landmarks 532, 533 remain undistorted.

It will be appreciated that the pattern group 500 illustrated in FIGS. 5A and 5B is for illustrative purposes, and different configurations, sizes, or types of patterns and/or borders may be employed, or omitted altogether, within the scope of the disclosure. In some embodiments, more than one image may be captured, with each image cropped or otherwise limited to contain only one pattern. In other embodiments, one image of both patterns is captured, and the image split into two images for parallel processing on each pattern in subsequent steps. In still other embodiments, video clips of the patterns may be captured, or multiple static images captured in rapid succession.

It will also be appreciated that lenses having different characteristics will distort the pattern in the captured image in different ways. For example, lenses with positive powers will magnify the pattern in the captured image, causing the pattern to appear larger through the corrective lens. In that situation, the pattern may be sized such that the pattern in the captured image is not too large to be fully bounded by the corrective lens. Similarly, lenses with negative powers will diminish the pattern in the captured image, causing the pattern to appear smaller through the corrective lens. In that situation, the pattern may be sized such that the pattern in the captured image is not too small to be identified and processed in identified in later steps. Accordingly, in some embodiments the pattern may be displayed on a display device allowing the pattern size to be configured according to the characteristics of the lens or other considerations. In some embodiments, the user may be provided an interface (either via the display device or the lensmeter 210) to resize the pattern, or to select a characteristic of the lens and cause a suitably-sized pattern to be displayed. In other embodiments, the pattern may be resized automatically by the system so that it is the correct size in the captured image.

As can be seen in the captured image 550 in FIG. 5B, the border 530 is rotated counter-clockwise from the horizontal rectangular configuration show in FIG. 5A, and the patterns 510, 520 and border 530 in FIG. 5B are smaller than their counterparts in FIG. 5A. These variations make it difficult to directly compare the pattern group 500 of the captured image 550 to the reference pattern group 500.

Therefore, returning to FIG. 4, at step 430, the captured image is transformed to an ideal coordinate system. In some embodiments, the captured image is transformed to the ideal coordinate system represented by the reference pattern group 500 of FIG. 5A. This transformation may involve rotating, resizing, cropping, and skewing the image to remove any distortions or imprecisions introduced by the image capture process. In some embodiments, the captured image is transformed to an ideal coordinate system by detecting the border reference landmarks 532′, 533′, 534′, 535′ in the captured image 550, and transforming the captured image 550 using image manipulation techniques to cause the border reference landmarks 532′, 533′, 534′, 535′ to appear in the same location in the captured image as the corresponding border reference landmark 532, 533, 534, 535 in the reference pattern group 500 of FIG. 5A. The border reference landmarks 532′, 533′, 534′, 535′ may be detected by computer vision techniques, and the border reference landmarks 532′, 533′, 534′, 535′ or the pixels constituting them may be configured to have a shape, color, or other characteristic suitable for performing such computer vision techniques.

In some embodiments, a matrix transform is determined from the distance between the border reference landmarks 532, 533, 534, 535 in the captured image 550 and the corresponding border reference landmarks 532, 533, 534, 535 in the reference pattern group 500 of FIG. 5A. The matrix transform is then applied to some or all of the pixels of the captured image 550 in order to effect the transformation.

The captured image 550 as it appears after transformation to the ideal coordinate system can be seen in FIG. 5C. The border reference landmarks 532′, 533′, 534′, 535′ in this transformed captured image 550 are in the same location as the border reference landmarks 532, 533, 534, 535 in the reference pattern group 500 of FIG. 5A.

At step 440, the captured image is processed to determine an overall distortion from a reference pattern to the pattern of the captured image. The overall distortion (i.e., the distortion introduced by the corrective lens as well as the lens of the camera used to capture the image) may be determined by comparing the patterns 510, 520 in the captured image 550 to the patterns in the reference pattern group 500. In some embodiments, the comparison is performed by comparing the plurality of pattern reference landmarks 512′ in the captured image 550 to the plurality of pattern reference landmarks 512 in the reference pattern group 500.

FIG. 6 illustrates the locations of the plurality of pattern reference landmarks 512′ in an exemplary captured image 550 overlaid over the locations of the plurality of pattern reference landmarks 512 in the reference pattern group 500. The distance between each pattern reference landmark 512 a′, 512 b′ in the captured image and its corresponding reference landmark 512 a, 512 b in the reference pattern group may be used to determine a dioptric power matrix P that describes the distortion (i.e., transformation) from the ideal coordinate system to the captured image.

Prentice's Rule describes the amount of induced prism in a lens. P can be used to express Prentice's Rule in matrix form as x_(test)=Px_(ref), where x_(test) is a matrix of the location of the pattern reference landmark 512 a′, 512 b′ in the captured image, and where x_(ref) is a matrix of the location of the corresponding reference landmark 512 a, 512 b in the reference pattern group.

The dioptric power matrix P is given by:

$P = \begin{bmatrix} P_{x} & P_{t} \\ P_{t} & P_{y} \end{bmatrix}$ where: P_(x) = S + C sin²θ P_(y) = S+ C cos²θ P_(t) = −C sin  θcos θ Solving algebraically allows for the determination of values for S, a value related to the spherical power of the lens; C, a value related to the cylinder power of the lens; and θ, the astigmatism angle of the lens.

The values of S and C describe the distortion introduced into the captured image by both the corrective lens and the lens of the camera of the lensmeter. Therefore, at step 450, the distortion of the pattern in the captured image attributable to the corrective lens is determined. In particular, the focal lengths of the corrective lens along two orthogonal axes corresponding to θ and θ+90°, f_(θ) and f_(θ+90°), are determined by the following equations:

$f_{\theta} = {\frac{1}{4}\left( \frac{S}{S - 1} \right)}$ $f_{\theta + {90{^\circ}}} = {\frac{1}{4}\left( \frac{S + C}{S + C - 1} \right)}$ where l is the distance between the pattern and the lens of the camera of the lensmeter. To determine the value of l, parameters of the camera and/or lens may be determined or directly accessed from a data store. In some embodiments, the focal length f of the camera lens may be determined from metadata in the captured image, or in configuration information for the lensmeter. The height h of the patterns may be known. The distance l may be determined from f and other parameters. Methods and systems for determining a distance from an object (e.g., the pattern) are described in U.S. patent application Ser. No. 14/996,917, titled “SMARTPHONE RANGE FINDER” and filed on Jan. 15, 2016, the entire disclosure of which is hereby incorporated by reference in its entirety.

At step 460, at least one characteristic of the corrective lens is determined. In some embodiments, the sphere, cylinder, and axis measurements of the corrective lens may be determined, allowing for the prescription of the corrective lens to be determined. The sphere measurement indicates the amount of lens power measured in diopters. Corrective lenses may be prescribed a certain sphere value to correct nearsightedness or farsightedness in all meridians of the eye. In some embodiment, the sphere value may be signed, with a negative value representing a nearsightedness prescription and a positive value representing a farsightedness prescription.

The cylinder value indicates the amount of lens power prescribed for astigmatism. The cylinder value may be zero if no correction is prescribed for astigmatism. A cylinder measurement indicates that the corrective lenses have a first meridian with no added curvature, and a second meridian, perpendicular to the first meridian, that contains a maximum lens curvature to correct astigmatism.

The axis value described the orientation of the second meridian of the cylinder. The axis value may range from 1 to 180°, with 90° corresponding to the vertical meridian of the eye, and 180° corresponding to the horizontal meridian.

Other values may also be determined for the corrective lenses, such as an ADD value representing an added magnifying power applied to the bottom part of a multifocal (e.g., bifocal or trifocal) lens.

In some embodiments, the sphere, cylinder, and axis measurements of the corrective lens may be determined by the following equations:

SPH = 1000/f_(θ) ${CYL} = {1000\left( {\frac{1}{f_{\theta + {90{^\circ}}}} - \frac{1}{f_{\theta}}} \right)}$ AXIS = 180^(∘) − θ wherein the determination of AXIS is carried out from the perspective of a wearer of the corrective lens.

The values of SPH, CYL, and AXIS may be displayed on a screen of the lensmeter, may be stored in a memory (e.g., a database, or a file) of the lensmeter, and/or may be delivered via the network interface of the lensmeter to another party, such as an eye doctor affiliated with an owner of the corrective lenses, for verification or for filling of the prescription. For example, the processes may be performed by a person who has eyeglasses but does not know the prescription of those glasses. Information obtained through the methods discussed herein may be transmitted to the person's eyecare professional, who can use the information to order a new set of eyeglasses with the proper prescription.

The process 400 ends at step 470.

In some embodiments, the requirement that the corrective lenses be located halfway between the lensmeter and the pattern may be relaxed. The lensmeter and/or the corrective lenses may instead be moved relative to each other and the pattern, with the lensmeter capturing multiple images. For each image, values of S and C may be determined as discussed above. It is known that S and S+C have an extreme value (i.e., a minimum or maximum) when the corrective lenses are positioned halfway between the lensmeter and the pattern. The image for which S and S+C generate an extreme value may be used as the basis for the processes described herein.

It will also be appreciated that, although the examples given here involve corrective lenses in the form of eyeglasses, the processes and systems may be applicable to other types of corrective lenses, such as contact lenses, assuming the contact lenses can be held in a suitable orientation and location for performance of the claimed processes.

In some embodiments, the captured image is not transformed to an ideal coordinate system. Rather, two images are captured: a first image in which the corrective lens is disposed between the lensmeter and the pattern, as discussed in various embodiments herein, and a second “reference” image, identical to the first except that the corrective lens has been removed. Because the distortive effect of the lens is not present in the second image, the first image may be compared directly to the second image to determine the amount of distortion using the techniques discussed with respect to step 440 in process 400.

As discussed above, aspects and functions disclosed herein may be implemented as hardware or software on one or more of these computer systems. There are many examples of computer systems that are currently in use. These examples include, among others, network appliances, personal computers, workstations, mainframes, networked clients, servers, media servers, application servers, database servers and web servers. Other examples of computer systems may include mobile computing devices, such as cellular phones and personal digital assistants, and network equipment, such as load balancers, routers and switches. Further, aspects may be located on a single computer system or may be distributed among a plurality of computer systems connected to one or more communications networks.

For example, various aspects and functions may be distributed among one or more computer systems configured to provide a service to one or more client computers. Additionally, aspects may be performed on a client-server or multi-tier system that includes components distributed among one or more server systems that perform various functions. Consequently, examples are not limited to executing on any particular system or group of systems. Further, aspects may be implemented in software, hardware or firmware, or any combination thereof. Thus, aspects may be implemented within processes, acts, systems, system elements and components using a variety of hardware and software configurations, and examples are not limited to any particular distributed architecture, network, or communication protocol.

As shown in FIG. 3, the lensmeter 210 may be interconnected with, and may exchange data with, other systems via the network interface 340 connected to a network. The network may include any communication network through which computer systems may exchange data. To exchange data using the network, the lensmeter 210 and the network may use various methods, protocols and standards, including, among others, Fibre Channel, Token Ring, Ethernet, Wireless Ethernet, Bluetooth, IP, IPV6, TCP/IP, UDP, DTN, HTTP, FTP, SNMP, SMS, MMS, SS7, JSON, SOAP, CORBA, REST and Web Services. To ensure data transfer is secure, the lensmeter 210 may transmit data via the network using a variety of security measures including, for example, TSL, SSL or VPN.

Various aspects and functions may be implemented as specialized hardware or software executing in one or more computer systems. As illustrated in FIG. 3, the lensmeter 210 includes a camera 310, a processor 320, a user interface 330, a network interface 340, a memory 350, and lensmeter software 360.

The processor 320 may perform a series of instructions that result in manipulated data. The processor 320 may be a commercially available processor such as an Intel Xeon, Itanium, Core, Celeron, Pentium, AMD Opteron, Sun UltraSPARC, IBM Power5+, or IBM mainframe chip, but may be any type of processor, multiprocessor or controller. The processor 320 is connected to other system elements, including memory 350, the camera 310, etc.

The memory 350 may be used for storing programs and data during operation of the lensmeter 210. Thus, the memory 350 may be a relatively high performance, volatile, random access memory such as a dynamic random access memory (DRAM) or static memory (SRAM). However, the memory 350 may include any device for storing data, such as a disk drive or other non-volatile storage device. Various examples may organize the memory 350 into particularized and, in some cases, unique structures to perform the functions disclosed herein.

The memory 350 may also include a computer readable and writeable nonvolatile (non-transitory) data storage medium in which instructions are stored that define a program that may be executed by the processor 320. The memory 350 also may include information that is recorded, on or in, the medium, and this information may be processed by the processor 320 during execution of the program. More specifically, the information may be stored in one or more data structures specifically configured to conserve storage space or increase data exchange performance. The instructions may be persistently stored as encoded signals, and the instructions may cause the processor 320 to perform any of the functions described herein. The medium may, for example, be optical disk, magnetic disk or flash memory, among others. A variety of components may manage data movement between the storage medium and other memory elements and examples are not limited to particular data management components. Further, examples are not limited to a particular memory system or data storage system.

The lensmeter 210 also includes one or more user interfaces 330. The user interface 330 may receive input or provide output. More particularly, output devices may render information for external presentation. Input devices may accept information from external sources. Examples of interface devices include keyboards, mouse devices, trackballs, microphones, touch screens, printing devices, display screens, speakers, network interface cards, etc.

Although the lensmeter 210 is shown by way of example as one type of a computer device upon which various aspects and functions may be practiced, aspects are not limited to being implemented on the lensmeter 210 as shown in FIGS. 2 and 3. Various aspects and functions may be practiced on one or more computers having a different architectures or components than that shown in FIG. 3. For instance, the lensmeter 210 may include specially programmed, special-purpose hardware, such as for example, an application-specific integrated circuit (ASIC) tailored to perform a particular operation disclosed herein. While another example may perform the same function using a grid of several general-purpose computing devices running MAC OS System X with Motorola PowerPC processors and several specialized computing devices running proprietary hardware and operating systems.

The lensmeter 210 may include an operating system that manages at least a portion of the hardware elements included in the lensmeter 210. Usually, a processor or controller, such as the processor 320, executes an operating system which may be, for example, a Windows-based operating system, such as, Windows NT, Windows 2000 (Windows ME), Windows XP, Windows Vista or Windows 7 operating systems, available from the Microsoft Corporation, a MAC OS System X operating system available from Apple Computer, one of many Linux-based operating system distributions, for example, the Enterprise Linux operating system available from Red Hat Inc., a Solaris operating system available from Sun Microsystems, or a UNIX operating systems available from various sources. Many other operating systems may be used, and examples are not limited to any particular implementation.

The processor 320 and operating system together define a computer platform for which application programs in high-level programming languages may be written. These component applications may be executable, intermediate, bytecode or interpreted code which communicates over a communication network, for example, the Internet, using a communication protocol, for example, TCP/IP. Similarly, aspects may be implemented using an object-oriented programming language, such as .Net, SmallTalk, Java, C++, Ada, or C# (C-Sharp). Other object-oriented programming languages may also be used. Alternatively, functional, scripting, or logical programming languages may be used.

Additionally, various aspects and functions may be implemented in a non-programmed environment, for example, documents created in HTML, XML or other format that, when viewed in a window of a browser program, render aspects of a graphical-user interface or perform other functions. Further, various examples may be implemented as programmed or non-programmed elements, or any combination thereof. For example, a web page may be implemented using HTML while a data object called from within the web page may be written in C++. Thus, the examples are not limited to a specific programming language and any suitable programming language could be used. Thus, functional components disclosed herein may include a wide variety of elements, e.g. executable code, data structures or objects, configured to perform described functions.

Embodiments described above utilize a process for determining characteristics of a corrective lens using a camera of a mobile device. Other embodiments may be used to determine characteristics of a lens in a number of different applications including: detecting flaws in a lens; comparing characteristics of two different lenses; determining the structural characteristics of the lens based on the amount of diffraction (i.e., distortion) detected; or other applications that call for determining the characteristics of a lens.

Having thus described several aspects of at least one example, it is to be appreciated that various alterations, modifications, and improvements will readily occur to those skilled in the art. For instance, examples disclosed herein may also be used in other contexts. Such alterations, modifications, and improvements are intended to be part of this disclosure, and are intended to be within the scope of the examples discussed herein. Accordingly, the foregoing description and drawings are by way of example only. 

What is claimed is:
 1. A process for determining characteristics of a lens, the process comprising: capturing a first captured image of a pattern through a corrective lens while the corrective lens is at a first distance from the pattern; capturing a second captured image of the pattern through the corrective lens while the corrective lens is at a second distance from the pattern; processing the first captured image to determine a first spherical power measurement; processing the second captured image to determine a second spherical power measurement; selecting, from among a plurality of spherical power measurements comprising the first spherical power measurement and the second spherical power measurement, an extreme spherical power measurement among the plurality of spherical power measurements; and determining, with reference to the extreme spherical power measurement, a lens power of the corrective lens.
 2. The process of claim 1, wherein the extreme spherical power measurement is the largest absolute value among the plurality of spherical power measurements where the corrective lens is a converging lens, and wherein the extreme spherical power measurement is the smallest absolute value among the plurality of spherical power measurements where the corrective lens is a diverging lens.
 3. The process of claim 1, wherein the first captured image and the second captured image are captured by a camera having a camera lens, and wherein the camera lens is positioned at a fixed distance from the pattern during capture of the first captured image and the second captured image.
 4. The process of claim 1, further comprising determining a prescription of the corrective lens, the prescription including at least a sphere value, a cylinder value, and an axis value.
 5. The process of claim 1, wherein the pattern is a first pattern and the corrective lens is a first corrective lens, and wherein capturing the first captured image further comprises capturing, in the first captured image, a second pattern through a second corrective lens, wherein the first pattern and the second pattern are spaced from each other such that the first pattern and the second pattern are able to be captured in the first captured image when the first corrective lens and the second corrective lens are positioned at a known location relative to the first pattern and second pattern.
 6. The process of claim 1, wherein processing the first captured image to determine the first spherical power measurement comprises transforming the first captured image to an ideal coordinate system, and wherein processing the second captured image to determine the second spherical power measurement comprises transforming the second captured image to the ideal coordinate system.
 7. The process of claim 1, wherein processing the first captured image to determine the first spherical power measurement comprises: determining an overall distortion from a reference pattern to the pattern of the first captured image; and determining a distortion of the captured pattern attributable to the corrective lens.
 8. The process of claim 1, wherein each of the first captured image and the second captured image includes a first region containing the pattern and created by light passing through the corrective lens, and a second region created by light not passing through the corrective lens, wherein determining a distortion of the captured pattern attributable to the corrective lens is performed at least in part with reference to the second region.
 9. The process of claim 1, further comprising: determining, from the first captured image, a first distance from a camera lens of a lensmeter with which the first captured image was captured to the pattern; identifying a direction to a second location relative to a first location; guiding a user of the lensmeter to the second location; and capturing the second captured image of the pattern through the corrective lens at the second location.
 10. The process of claim 1, wherein processing the first captured image to determine the first spherical power measurement comprises: detecting, in the first captured image, a plurality of captured pattern landmarks; determining a transformation from a plurality of ideal pattern landmarks to the plurality of captured pattern landmarks; and determining for the corrective lens, from the transformation, the first spherical power measurement.
 11. The process of claim 6, wherein transforming the first captured image to the ideal coordinate system comprises: detecting a plurality of captured reference landmarks in a second region of the first captured image; determining a transformation from a plurality of ideal reference landmarks to the plurality of captured reference landmarks; and applying the transformation to the first captured image.
 12. The process of claim 7, wherein the first captured image is captured by a camera having a camera lens, and wherein determining the distortion of the captured pattern attributable to the corrective lens comprises: determining a distance between the camera lens and the pattern; and determining at least one focal length of the corrective lens with reference to the distance and the spherical power measurement.
 13. The process of claim 8, wherein the pattern comprises a checkerboard pattern, and wherein the second region contains a border.
 14. The process of claim 9, further comprising: guiding the user of the lensmeter from the first location to a third location to the second location; and capturing a third captured image of the pattern through the corrective lens at the third location, wherein the third location is substantially halfway between the lensmeter and the pattern.
 15. The process of claim 10, further comprising determining for the corrective lens, from the transformation, a cylinder power measurement and an astigmatism angle measurement.
 16. The process of claim 10, wherein the transformation is a dioptric power matrix.
 17. A lensmeter comprising: a camera having a camera lens; a visual display; and a processor coupled to the camera, the processor configured to: capture a first captured image of a pattern through a corrective lens while the corrective lens is at a first distance from the pattern; capture a second captured image of the pattern through the corrective lens while the corrective lens is at a second distance from the pattern; process the first captured image to determine a first spherical power measurement; process the second captured image to determine a second spherical power measurement; select, from among a plurality of spherical power measurements comprising the first spherical power measurement and the second spherical power measurement, an extreme spherical power measurement; and determine, with reference to the extreme spherical power measurement, a lens power of the corrective lens.
 18. The lensmeter of claim 17, wherein the extreme spherical power measurement is the largest absolute value among the plurality of spherical power measurements where the corrective lens is a converging lens, and wherein the extreme spherical power measurement is the smallest absolute value among the plurality of spherical power measurements where the corrective lens is a diverging lens.
 19. The lensmeter of claim 17, wherein the captured image includes a first region containing the pattern and created by light passing through the corrective lens, and a second region created by light not passing through the corrective lens.
 20. The lensmeter of claim 17, wherein the processor is further configured to determine a distortion of the captured pattern attributable to the corrective lens by being configured to: determine a distance between the camera lens and the pattern; and determine at least one focal length of the corrective lens with reference to the distance and the spherical power measurement.
 21. The lensmeter of claim 17, wherein the processor is further configured to: determine, from the first captured image, a first distance from the camera lens to the pattern; identifying a direction to a second location relative to a first location; guiding a user of the lensmeter to the second location; and capturing the second captured image of the pattern.
 22. The lensmeter of claim 17, wherein the processor is configured to process the first captured image to determine the first spherical power measurement by being configured to: detect, in the first captured image, a plurality of captured pattern landmarks; determine a transformation from a plurality of ideal pattern landmarks to the plurality of captured pattern landmarks; and determine for the corrective lens, from the transformation, the first spherical power measurement.
 23. The lensmeter of claim 22, wherein the processor is further configured to determine for the corrective lens, from the transformation, a cylinder power measurement and an astigmatism angle measurement.
 24. The lensmeter of claim 22, wherein the transformation is a dioptric power matrix.
 25. A process for determining characteristics of a lens, the process comprising: obtaining a plurality of captured images of a pattern through a corrective lens while the corrective lens is moved relative to the pattern; processing each captured image of the plurality of captured images to determine a plurality of spherical power measurements, each of the plurality of spherical power measurements determined from one of the plurality of captured images; selecting an extreme spherical power measurement of the plurality of spherical power measurements; and determining, with reference to the extreme spherical power measurement, a lens power of the corrective lens.
 26. The process of claim 25, wherein the extreme spherical power measurement is the largest absolute value among the plurality of spherical power measurements where the corrective lens is a converging lens, and wherein the extreme spherical power measurement is the smallest absolute value among the plurality of spherical power measurements where the corrective lens is a diverging lens. 